package com.kcyu.sfhinvoice.service;

import com.kcyu.sfhinvoice.domain.FileDO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.util.List;

/**
* @author yujiancong
* @description 针对表【file(文件)】的数据库操作Service
* @createDate 2024-01-02 11:50:38
*/
public interface FileService extends IService<FileDO> {

    public FileDO upload(MultipartFile file, String modelCode, String busiKey);

    public List<FileDO> queryFile(String modelCode, String busiKey);

    public boolean removeFile(String fileId);

    public String uploadAsset(MultipartFile file);

    public void getAssets(String filePath, HttpServletResponse response);

}
